package com.guo;

/**
 * @author gonghuaiguo
 */
public class ClassTest {

    public static void main(String[] args) {
        Person1 person1 = new Person1();
    }

}

class Person1{

    public static String phone = "23439373740238";

    public int age = 3;

    public String  name  ="张三";

   

    public Person1() {

        System.out.println("类初始化age =" +age);
    }

    {
        System.out.println("代码块age=" +age);
        age = 2;
        System.out.println("name=" + name);
        System.out.println("代码块");
    }
}